import * as THREE from 'three'
export function addPoint(scene, x, y, z) {
  const geometry = new THREE.BufferGeometry()
  const vertices = new Float32Array([x, y, z])
  geometry.setAttribute('position', new THREE.BufferAttribute(vertices, 3))

  const material = new THREE.PointsMaterial({ color: 0xf0ff00, size: 100 })
  const point = new THREE.Points(geometry, material)

  scene.add(point)
}
